<template>
<h1>MylogsView</h1>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import blog from "../api/blogApi";

//获取博客列表
const blogList = ref([])
const getBlogList = async () => {
  const res = await blog.getBlogListApi()
  blogList.value = res.list
}

onMounted(() => {
  getBlogList()
})


</script>

<style scoped>

</style>